package com.zlkj.pro.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 文件客户端
 *
 * @author Raising
 */
@Configuration
public class MinioClient {

    String geturl(){
        return "http://182.92.76.117:9000";
    };
    String getendpoint(){
        return "http://182.92.76.117:9000";
    };
    String getbucket(){
        return "manbing";
    };
    String getaccesskey(){
        return "QCsZlCD16NQqV9UuH8zq";
    };
    String getsecretkey(){
        return "MW4Aokv9RwmX5sgqtDsKY79WX6sQ4Lg4R9GNL5Wx";
    };

    @Bean
    public io.minio.MinioClient getMinioClient() {
        return io.minio.MinioClient.builder().endpoint(geturl())
                .credentials(getaccesskey(), getsecretkey()).build();
    }
}
